;
var dashboard_index_ops = {
    init:function () {
        this.drawChart();
    },
    drawChart:function () {
        charts_ops.setOption();

        $.ajax({
            url:"/charts/index",
            dataType: 'json',
            success: function (res) {
                // console.log(res);
                // charts_ops.drawLine($('#member_order'), res.data);
                charts_ops.drawLine(jQuery('#member_order'), res.data);

            }
        });        
        $.ajax({
            url:"/charts/blog-access",
            dataType: 'json',
            success: function (res) {
                charts_ops.drawLine($('#blog_access'), res.data,'areaspline');
                // charts_ops.drawLine(jQuery('#blog_access'), res.data,'areaspline');

            }
        }); 
               
        $.ajax({
            url:"/charts/index",
            dataType: 'json',
            success: function (res) {
                charts_ops.drawLine($('#test_char'),res.data,'column');
                // charts_ops.drawLine(jQuery('#test_char'), res.data,'column');

            }
        });


    }
};

$(document).ready(function () {
    dashboard_index_ops.init();
});